package org.gitman.agent.tools;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;

public class ResourcesLoader {

	public static ImageIcon getIcon(String iconName) {
		return new ImageIcon("./data/ico/" + iconName);
	}
	
	public static BufferedImage getImage(String imageName) throws IOException {
		return ImageIO.read(new File("./data/img/" + imageName));
	}
}
